/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ar.com.wholeconsulting.pacc.gui.aceros;

/**
 *
 * @author Duco Pablo
 */
public enum AceroColum {
    NOMBRE(0,-1),
    T150(1,0),
    T200(2,1),
    T250(3,2),
    T300(4,3),
    T400(5,4),
    T500(6,5),
    T600(7,6),
    T650(8,7),
    T700(9,8),
    T750(10,9),
    T800(11,10),
    T850(12,11),
    T900(13,12);
    private int tableIndex;
    private int listIndex;
            
    private AceroColum(int i,int e) {
        tableIndex=i;
        listIndex=e;
    }
    
    public int getTableIndex(){
        return this.tableIndex;
    }

    public int getListIndex(){
        return this.listIndex;
    }
    
    public static String getterMethodName(){
        return "getyValues";
    }
    
    
    public static AceroColum fromString(String fluido){
        fluido = fluido.toUpperCase().replaceAll(" ", "_");
        return AceroColum.valueOf(fluido);
    }
   
    public static AceroColum fromTableIndex(int index){
        for (AceroColum acero : AceroColum.values()){
            if (acero.tableIndex == index) {
                return acero;
            }
        }
        throw new IllegalArgumentException();
    }
    
}
